package cn.shenlong.portal.service;

import java.util.List;
import java.util.Map;

import cn.shenlong.common.Pagination;
import cn.shenlong.portal.domain.Content;

public interface ContentService {

	/**
	 * 保存文章
	 * 
	 * @param content
	 */
	public void save(Content content, long channelId);

	/**
	 * 显示分页数据
	 * 
	 * @param content
	 * @return
	 */
	public Pagination findContents(Content content,
			Map<String, Object> otherParm, Integer pageSize, Integer pageNo);

	/**
	 * 查询内容
	 * 
	 * @param contentId
	 * @return
	 */
	public Content findContentByContentId(long contentId);

	public Content updateContent(Content content);

	public void deleteContent(Long[] contentId);

	public void deleteByContentIdAndChannelId(List<Long> contentId,
			long channelId);

	public void deleteContentByChannelId(long channelId);

}
